/**
 * RSA 公钥
 */
var RSA_PUBLIC_KEY="-----BEGIN PUBLIC KEY-----"+"\n"+
"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDZNRppQm8Ohg4+32JzNfnmkPmY"+"\n"+
"SxKokpYLul8mmGW5Nh9l6+pANPvlWsN4Kd9wwExLUwCOv9WD0AgxNSIi7VXo+njS"+"\n"+
"yjMlfZvyT9nGy7ihXJGSG5Qo6iTLnye7R6Bznct2ptCuzUskico88IfMsoECgcj4"+"\n"+
"KqpvRv7s2S9xYv62twIDAQAB"+"\n"+
"-----END PUBLIC KEY-----"+"";

/**
 * RSA公钥加密函数
 * @param str String 明文
 * @returns String 加密后的内容
 */
function rsaPublicKeyEncrypt(str){
	var encrypt = new JSEncrypt();
    encrypt.setPublicKey(RSA_PUBLIC_KEY);
    return encrypt.encrypt(str);
}